/**
 * 
 */
package STUDENTS.LEKDINHKHANHVU.OOP;

/**
 * @author khanh
 *
 */
public class TaoRaLopDoiTuong {
	public static void main(String[] args) {
		//1. Khai báo đối tượng
		//<Lớp đối tượng><Đối tượng cần được tạo ra>
		SinhVien MrA;
		SinhVien MrsB;
		SinhVien MrC;
		SinhVien MrsD;
		// 2.Khai sinh cho đối tượng
		MrA = new SinhVien();
		MrsB = new SinhVien();
		MrC = new SinhVien();
		MrsD = new SinhVien();
		//3. Khai báo từng thông tin trong hồ sơ khai sinh
		MrA.setRollNo(1);
		MrA.setFullName("Nguyễn Văn A");
		MrA.setMark(8.5);
		MrsB.setRollNo(2);
		MrsB.setFullName("Lê Văn B");
		MrsB.setMark(9);
		MrC.setRollNo(3);
		MrC.setFullName("Trần Văn C");
		MrC.setMark(8.5);
		MrsD.setRollNo(4);
		MrsD.setFullName("Hoàng Văn D");
		MrsD.setMark(8.5);
		// 4. Hiển thị thông tin đối tượng
		System.out.println("--------MrA-------");
		System.out.println("RollNo: " +MrA.getRollNo());
		System.out.println("FullName: " +MrA.getFullName());
		System.out.println("Mark: " +MrA.getMark());
		System.out.println("--------MrA-------");
		System.out.println("RollNo: " +MrsB.getRollNo());
		System.out.println("FullName: " +MrsB.getFullName());
		System.out.println("Mark: " +MrA.getMark());
		System.out.println("--------MrA-------");
		System.out.println("RollNo: " +MrA.getRollNo());
		System.out.println("FullName: " +MrA.getFullName());
		System.out.println("Mark: " +MrA.getMark());
		System.out.println("--------MrA-------");
		System.out.println("RollNo: " +MrA.getRollNo());
		System.out.println("FullName: " +MrA.getFullName());
		System.out.println("Mark: " +MrA.getMark());
	}
}
